<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" ng-click="cancel()">&times;</button>
    <p class="modal-title panel-title-size">创建环境</p>
</div>
<div class="modal-body panel-body">
    <form class="form-horizontal form-validation" name="addRoleForm">
        <div class="form-group">
            <div class="col-lg-12">
                <label class="col-lg-2 control-label">环境名称：</label>
                <div class="col-lg-10 control-input">
                    <input type="text" name="envName" class="form-control" ng-model="addData.envName" validator="required" maxlength="64" maxlength-error-message="最多输入64个字符">
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-12">
                <label class="col-lg-2 control-label">环境描述：</label>
                <div class="col-lg-10 control-input">
                    <input type="text" name="envDesc" class="form-control" ng-model="addData.envDesc" validator="required" maxlength="64" maxlength-error-message="最多输入64个字符">
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-12">
                <label class="col-lg-2 control-label">集群关联：</label>
                 <div class="col-lg-10 control-input">
      				<select class="form-control" ng-model="addData.cluster" ng-options="x.clusterName for x in clustList" ng-change="changeCluster(addData.cluster)" validator="required">
        			<!-- <option ng-options="x.serviceIp for x in clustList" value="{{x.serviceIp}}" title="{{x.clusterId}}">{{x.clusterName}}</option> -->
      				</select>
   				 </div>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button type="submit" class="btn btn-primary" validation-submit="addRoleForm" ng-disabled="addRoleForm.$invalid" ng-click="ok()">确认</button>
    <button class="btn btn-default" ng-click="cancel()">取消</button>
</div>